﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using MododorWebAPI.Models;

namespace MododorWebAPI.EntityConfigs
{
    public class ContractTypeEntityConfig : IEntityTypeConfiguration<ContractTypeModel>
    {
        public void Configure(EntityTypeBuilder<ContractTypeModel> builder)
        {
            builder.ToTable("ContractType");
            builder.Property(x => x.ContractTypeEN).HasDefaultValue(true);
        }
    }
}
